﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;

namespace Hi_Baidu.User.LogEntry
{
    /// <summary>
    ///     用户聊天记录类型
    /// </summary>
    [Serializable]
    public class TYPE_UserTalkMessage : IMetaData
    {
        /// <summary>
        ///     用户聊天记录类型
        /// </summary>
        public TYPE_UserTalkMessage()
        {
            this.key = DateTime.Now.ToString();
        }

        private String _Username;
        /// <summary>
        ///     用户名
        /// </summary>
        public String Username
        {
            get { return _Username; }
            set { _Username = value; }
        }
        private String _Nickname;
        /// <summary>
        ///     昵称
        /// </summary>
        public String Nickname
        {
            get { return _Nickname; }
            set { _Nickname = value; }
        }
        private DateTime _SendTime;
        /// <summary>
        ///     发送时间
        /// </summary>
        public DateTime SendTime
        {
            get { return _SendTime; }
            set { _SendTime = value; }
        }
        private Grid _TalkMessage;
        /// <summary>
        ///     聊天内容 [Grid封装形式]
        /// </summary>
        public Grid TalkMessage
        {
            get { return _TalkMessage; }
            set { _TalkMessage = value; }
        }
        private DateTime _SaveDate;
        /// <summary>
        ///     保存日期
        /// </summary>
        public DateTime SaveDate
        {
            get { return _SaveDate; }
            set { _SaveDate = value; }
        }

        #region IMetaData 成员

        private String key;
        public string Key
        {
            get
            {
                return key;
            }
            set
            {
                key = value;
            }
        }

        #endregion
    }
}
